<?php
namespace app\index\controller;
use think\Controller;
use app\common\model\Wares;

class Index extends Controller
{
    public function index()
    {
		$wares = new Wares();
		
		$where["recommend"] = 1;
		$where["status"] = 1;
		
		$result_wares = $wares->where($where)->order("sort asc")->select();
		
        return $this->fetch("",["active"=>1,"result_wares"=>$result_wares]);
    }
}
